﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI_MasterPage/Main.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="UI_Main.PresentationDefault" %>
<%@ Import Namespace="Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="title" Runat="Server">
Trang chủ
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">
    <asp:Panel ID="NewArticle" GroupingText="New article" runat="server">
    <asp:ListView ID="ArticleListView" runat="server">
        <ItemTemplate>
            <div class="itemListView" 
                 onmouseover="toolVisible('<%# Eval("Id") %>')" 
                 onmouseout="toolInvisible('<%# Eval("Id") %>')">

                <a href="ViewArticle.aspx?Id=<%# Eval("Id") %>"><%# Eval("Title")%></a>
                <br />
                <br />
                <span><%# Eval("Brief")%></span>

                <br />
                <span style="float:right"><%# Eval("User")%></span>
                <span id="<%# Eval("Id") %>" 
                    class="toolEdit" 
                    onmouseover="toolVisible(this.id)" 
                    onmouseout="toolInvisible(this.id)">
                    <img src="../Resource/Images/recycle.png" class="iconSize" alt="delete" onclick="callDelete(this, 'deleteArticle', '<%# Eval("Id") %>')"/>
                    <img src="../Resource/Images/editor.png" class="iconSize" alt="edit" onclick="editArticle('<%# Eval("Id")%>')"/>
                </span>
            </div>
        </ItemTemplate>
        <EmptyDataTemplate>
            Xin lỗi, không có gì để hiển thị
        </EmptyDataTemplate>
    </asp:ListView>
    </asp:Panel>
</asp:Content>
